$(function () {
    initTime('beginUpdateTime','endUpdateTime','')
    function queryRefundDetailsList(pageNo) {
        var params = $("#search-form").serializeJSON();
        params = JSON.stringify(params);
        var obj = {
            url: baseloaction + '/admin/order/details/ajaxQueryRefundOrderDetailsList',//请求URL
            contextId: 'order-details-list-content',//响应内容页面设置内容ID
            params: params,//请求参数
            pageNo: pageNo,//页码
            pageCall: queryRefundDetailsList, //分页回调加载数据(点击上下页时调用,该方法也在加载页面完成时调用)
            callback: function () {//数据加载完成回调
                $("#count").text('（共'+total+'条退费记录）');
            }
        };
        ajaxGetListData(obj);
    }
    queryRefundDetailsList(1);

    $("body").on('click',"#btn1,#btn2",function () {
        queryRefundDetailsList(1);
    }).on('click',"#downloadExcel",function () {
        exportExecl.init({
                title:"退费数据导出",
                excelUrl: '/admin/order/details/downloadExcelOrdersDetailsList',
                distinguish:'REFUND',
                type:3
            }
        )
    });
});